/**
 * 
 */
package neptune.web.client.services;

import neptune.web.client.model.ApplicationGenericInfo;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * @author Roberto Bifulco [info@robertobifulco.it, robertobifulco.it]
 * 
 */
@RemoteServiceRelativePath("/applicationService.cmd")
public interface ApplicationGenericService extends RemoteService {

        public static class Util {

                public static ApplicationGenericServiceAsync getInstance() {

                        return GWT.create(ApplicationGenericService.class);
                }
        }

        public ApplicationGenericInfo getApplicationInfo()
                        throws SecurityException, Exception;

        /**
         * 
         * @param ipServer
         * @return
         * @throws SecurityException
         * @throws Exception
         */
        public String openRandomSSHRedirectPort(String ipServer)
                        throws SecurityException, Exception;

}


